#ifndef __HEAD_H__
#define __HEAD_H__

#include <func.h>
#include "threadPool.h"
#include "taskQueue.h"

enum
{
    CD,LS,PUTS,GETS,REMOVE,PWD,MKDIR,RMDIR
};

//linting
int readConf(const char* conf,char* ip,char* port,char* threadNum);
int recvOrder(int netfd,int* orderflag,char* path);
int checkLogin(int sockfd,MYSQL* mysql);
int generateSalt(char* str);
int user_Register(int netfd,MYSQL* mysql);
int myCd(int netfd, int id, char* args, MYSQL* mysql);
//数据库相关
int init_Mysql(MYSQL** mysql);

//huang
int sendLs(int netfd,int cdcode,MYSQL*mysql);
int sendPwd(int netfd,int cdcode,MYSQL*mysql);
int createMkdir(int cdcode,char *args,MYSQL*mysql);
int removefile(int cdcode,char *args,MYSQL*mysql);

#endif

